package com.qianhui.orderapi.zhijian;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name = "Head", propOrder = {"messageID", "messageType", "receiver", "sender", "sendTime", "functionCode", "version"})
public class Head
{
    private String MessageID;
    private String MessageType;
    private String Receiver;
    private String Sender;
    private String SendTime;
    private String FunctionCode;
    private String Version;

    public Head()
    {
        super();
        // TODO Auto-generated constructor stub
    }

    public Head(String messageID, String messageType, String receiver, String sender, String sendTime, String functionCode, String version)
    {
        super();
        MessageID = messageID;
        MessageType = messageType;
        Receiver = receiver;
        Sender = sender;
        SendTime = sendTime;
        FunctionCode = functionCode;
        Version = version;
    }

    @XmlElement(name = "MessageID")
    public String getMessageID()
    {
        return MessageID;
    }

    public void setMessageID(String messageID)
    {
        MessageID = messageID;
    }

    @XmlElement(name = "MessageType")
    public String getMessageType()
    {
        return MessageType;
    }

    public void setMessageType(String messageType)
    {
        MessageType = messageType;
    }

    @XmlElement(name = "Receiver")
    public String getReceiver()
    {
        return Receiver;
    }

    public void setReceiver(String receiver)
    {
        Receiver = receiver;
    }

    @XmlElement(name = "Sender")
    public String getSender()
    {
        return Sender;
    }

    public void setSender(String sender)
    {
        Sender = sender;
    }

    @XmlElement(name = "SendTime")
    public String getSendTime()
    {
        return SendTime;
    }

    public void setSendTime(String sendTime)
    {
        SendTime = sendTime;
    }

    @XmlElement(name = "FunctionCode")
    public String getFunctionCode()
    {
        return FunctionCode;
    }

    public void setFunctionCode(String functionCode)
    {
        FunctionCode = functionCode;
    }

    @XmlElement(name = "Version")
    public String getVersion()
    {
        return Version;
    }

    public void setVersion(String version)
    {
        Version = version;
    }

    @Override
    public String toString()
    {
        return "Head [MessageID=" + MessageID + ", MessageType=" + MessageType + ", Receiver=" + Receiver + ", Sender=" + Sender + ", SendTime=" + SendTime + ", FunctionCode=" + FunctionCode + ", Version=" + Version + "]";
    }

}
